import request from '@/utils/request'

/**
 * 网格查询DATA_CUSTOMER_INFO 中客户信息没有经纬度的客户
 * @param query
 * @returns {AxiosPromise}
 */
export function queryCustmoerLatLngEmpty(query) {
  return request({
    url: '/buss/customer/queryCustomerlatlng',
    method: 'get',
    params: query

  })
}

/**
 * 网格查询DATA_CUSTOMER_INFO 中客户信息有经纬度的客户
 * @param query
 * @returns {AxiosPromise}
 */
export function findCustmoerInfo(query) {
  return request({
    url: '/buss/customer/findCustomerInfo',
    method: 'get',
    params: query

  })

}

/**
 * 更新客户经纬度信息
 * @param idCard
 * @param Jingdu
 * @param Weidu
 * @returns {AxiosPromise}
 */
export function updateCustomDataInfo(idCard, Jingdu, Weidu) {
  return request({
    url: '/buss/customer/updateCustomerLatLng/' + idCard + "/" + Jingdu + "/" + Weidu,
    method: 'get'
  })
}

/**
 * 查找网格信息
 * @returns {AxiosPromise}
 */
export function findGridInfo(query) {
  return request({
    url: '/buss/dataWgGridInfo/queryList',
    method: 'get',
    params: query

  })
}
